package com.ruoyi.project.explorer.domain;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.web.multipart.MultipartFile;

/**
 * 资源管理对象 explorer
 * 
 * @author ruoyi
 * @date 2019-11-29
 */
public class Explorer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 资源名称 */
    @Excel(name = "资源名称")
    private String resourceName;

    /** 资源类型 */
    @Excel(name = "资源类型")
    private Integer type;

    /** 所属课程 */
    @Excel(name = "所属课程")
    private Long courseId;

    /** 上传人id */
    @Excel(name = "上传人id")
    private Long userId;

    private MultipartFile file;

    public MultipartFile getFile() {
        return file;
    }

    public void setFile(MultipartFile file) {
        this.file = file;
    }

    private String path;

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setResourceName(String resourceName)
    {
        this.resourceName = resourceName;
    }

    public String getResourceName()
    {
        return resourceName;
    }
    public void setType(Integer type)
    {
        this.type = type;
    }

    public Integer getType()
    {
        return type;
    }
    public void setCourseId(Long courseId)
    {
        this.courseId = courseId;
    }

    public Long getCourseId()
    {
        return courseId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }

/*    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("resourceName", getResourceName())
            .append("type", getType())
            .append("courseId", getCourseId())
            .append("userId", getUserId())
            .append("createTime", getCreateTime())
            .toString();
    }*/

    @Override
    public String toString() {
        return "Explorer{" +
                "id=" + id +
                ", resourceName='" + resourceName + '\'' +
                ", type=" + type +
                ", courseId=" + courseId +
                ", userId=" + userId +
                ", file=" + file +
                '}';
    }
}
